package com.example.easyexcel.enums;

import lombok.Getter;

@Getter
public enum OkCommonEnum {
    /*----------------------    首网、聚梦、中鼎动力、梦网 通用错误码    --------------------------*/
    M_PHONE_DOWN_ERROR("M_PHONE_DOWN_ERROR","关机"),
    M_PHONE_NUMBER_EMPTY_ERROR("M_PHONE_NUMBER_EMPTY_ERROR","空号"),
    M_BLACK_LISERROR("M_BLACK_LISERROR","黑名单"),
    M_PHONE_DOWN_EMPTY_OFF_ERROR("M_PHONE_DOWN_EMPTY_OFF_ERROR","关机或空号或停机"),
    M_TERMINAL_ERROR("M_TERMINAL_ERROR","终端异常"),
    M_PHONE_OFF_ERROR("M_PHONE_OFF_ERROR","停机"),
    M_PHONE_DOWN_OFF_ERROR("M_PHONE_DOWN_OFF_ERROR","关机或停机"),
    M_OUOF_SERVICE_ERROR("M_OUOF_SERVICE_ERROR","超出服务范围异常"),
    M_EXPENSES_ERROR("M_EXPENSES_ERROR","超出服务范围异常"),
    M_NOEXISERROR("M_NOEXISERROR","不存在异常"),
    M_RATE_OF_FLOW_ERROR("M_RATE_OF_FLOW_ERROR","流量限制"),
    M_PHONE_DOWN_EMPTY_ERROR("M_PHONE_DOWN_EMPTY_ERROR","关机或空号"),
    M_FREQUENCY_LIMIERROR("M_FREQUENCY_LIMIERROR","频率限制"),
    M_SUCCESS("M_SUCCESS","成功"),
    M_SMS_ERROR("M_SMS_ERROR","短信异常"),
    M_PHONE_EMPTY_OFF_ERROR("M_PHONE_EMPTY_OFF_ERROR","空号或停机"),
    M_UNSUBSCRIBE_ERROR("M_UNSUBSCRIBE_ERROR","退订异常"),
    M_REPEAERROR("M_REPEAERROR","数据重复异常"),
    M_ARREARAGE_ERROR("M_ARREARAGE_ERROR","费用或余额不足异常"),
    M_OVER_LOAD_ERROR("M_OVER_LOAD_ERROR","过载异常"),
    M_OTHER_ERROR("M_OTHER_ERROR","其他错误"),

    /*----------------------    twilio 错误码    --------------------------*/
    M_ACCEPTED("M_ACCEPTED","已被接收"),
    M_QUEUED("M_QUEUED","排队中"),
    M_SENDING("M_SENDING","发送中"),
    M_SENT("M_SENT","已发送"),
    M_FAILED("M_FAILED","失败"),
    M_DELIVERED("M_DELIVERED","已投递"),
    M_UNDELIVERED("M_UNDELIVERED","未投递"),
    M_RECEIVING("M_RECEIVING","接收中"),
    M_RECEIVED("M_RECEIVED","已接收"),
    M_READ("M_READ","已读"),

    /*----------------------    telesign 错误码    --------------------------*/
    M_200("200","传送到手机"),
    M_201("201","消息已读"),
    M_203("203","传送到网关"),
    M_207("207","将 SMS 传送到手机时出错（原因未知）"),
    M_210("210","空号或关机或停机"),
    M_211("211","黑名单"),
    M_222("222","不支持短信"),
    M_230("230","TeleSign 阻止的消息"),
    M_231("231","无效/不支持"),
    M_233("233","消息因风险评分高而被阻止。"),
    M_234("234","超出价格门槛"),
    M_237("237","消息在请求的国家被阻止"),
    M_238("238","目的地被前缀阻止"),
    M_250("250","最终状态未知"),
    M_251("251","消息成功发出送达，但未收到送达至手机的最终确认 / MO 成功发送但未收到送达至手机的最终确认"),
    M_290("290","消息进行中"),
    M_291("291","TeleSign 排队"),
    M_292("292","按网关排队"),
    M_510("510","消息被订阅者操作​​或请求阻止"),
    M_511("511","订户信用不足"),
    M_512("512","漫游错误"),
    M_513("513","手机号码携带错误"),
    M_514("514","订户缺席"),
    M_518("518","由于高风险 SIM 卡交换指示器，消息被阻止。"),
    M_519("519","未发送消息 - 无法执行请求的 SIM 交换检查。"),
    M_599("599","状态不可用"),
    M_3000("3000","发表"),
    M_3001("3001","消息进行中"),
    M_3002("3002","交付到网关"),
    M_3003("3003","交货错误"),
    M_3004("3004","消息成功发出送达，但未收到送达至手机的最终确认 / MO 成功发送但未收到送达至手机的最终确认"),
    M_3005("3005","消息已读"),
    M_3030("3030","临时电话错误"),
    M_3031("3031","永久电话错误"),
    M_3037("3037","消息在请求的国家被阻止"),
    M_3038("3038","目的地被前缀阻止"),
    M_3039("3039","最终状态未知"),
    M_3040("3040","按网关排队"),
    M_3041("3041","承运人被拒 - 临时问题"),
    M_3042("3042","承运人被拒 - 永久性错误"),
    M_3046("3046","消息被订阅者操作​​或请求阻止"),
    M_3052("3052","消息被您的请求阻止"),
    M_3053("3053","TeleSign 阻止的消息"),
    M_3107("3107","参数 phone_number 的国家/地区代码无效"),
    M_3204("3204","超过限速"),
    M_3205("3205","超过限速"),
    ;
    OkCommonEnum(String code, String msg){
        this.code = code;
        this.msg = msg;
    }
    private String code;
    private String msg;
}
